package com.agile.leetcode.order.timewheel;

import io.netty.util.Timeout;
import io.netty.util.TimerTask;

/**
 *
 * @Author:ChenZhangKun
 * @Date: 2021/9/15 10:27
 */
public class HashedWheelTimerTest {
    public static class MyTimerTask implements TimerTask {
        boolean flag;

        public MyTimerTask(boolean flag) {
            this.flag = flag;
        }

        @Override
        public void run(Timeout timeout) throws Exception {
            System.out.println("要去数据库删除订单了。。。。");

            this.flag = false;
        }
    }
}
